import { Base } from "../core/Base";
import { any } from "../core/logic";
import { EventType } from "../event/index";
/**
 * @class
 * @memberof w.system
 */
class System extends Base{
    constructor(opts={}){
        super(opts);
        this.eventType=any(opts.eventType,EventType.ComponentEvent);
    }
    active(){
        this._enable=true;
        this.on(this.eventType,this.run);
    }
    deactive(){
        this._enable=false;
        this.off(this.eventType,this.run)
    }
    run(){//子类实现

    }
}
export {System}